import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)


const store = new Vuex.Store({
  state: {
    nav_title: '默认标题'
  },
  mutations: {
    changeTitle (state, newTitle) {
      state.nav_title = newTitle;
    }
  },
  getters: {
  }
})

export default store
